package org.raymond.iworks.commons.constants;

import java.util.HashMap;
import java.util.Map;

public class ContentType {
    public static final Map<String, String> FILE_CONTENT_TYPE = new HashMap<>();

    static {
        FILE_CONTENT_TYPE.put("doc", "application/msword");
        FILE_CONTENT_TYPE.put("docx", "application/msword");
        FILE_CONTENT_TYPE.put("bin", "application/octet-stream");
        FILE_CONTENT_TYPE.put("exe", "application/octet-stream");
        FILE_CONTENT_TYPE.put("so", "application/octet-stream");
        FILE_CONTENT_TYPE.put("dll", "application/octet-stream");
        FILE_CONTENT_TYPE.put("pdf", "application/pdf");
        FILE_CONTENT_TYPE.put("ai", "application/postscript");
        FILE_CONTENT_TYPE.put("xls", "application/vnd.ms-excel");
        FILE_CONTENT_TYPE.put("xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
        FILE_CONTENT_TYPE.put("ppt", "application/vnd.ms-powerpoint");
        FILE_CONTENT_TYPE.put("dir", "application/x-director");
        FILE_CONTENT_TYPE.put("js", "application/x-javascript");
        FILE_CONTENT_TYPE.put("swf", "application/x-shockwave-flash");
        FILE_CONTENT_TYPE.put("xhtml", "application/x-shockwave-flash");
        FILE_CONTENT_TYPE.put("xht", "application/xhtml+xml");
        FILE_CONTENT_TYPE.put("zip", "application/zip");
        FILE_CONTENT_TYPE.put("mid", "audio/midi");
        FILE_CONTENT_TYPE.put("midi", "audio/midi");
        FILE_CONTENT_TYPE.put("mp3", "audio/mpeg");
        FILE_CONTENT_TYPE.put("rm", "audio/x-pn-realaudio");
        FILE_CONTENT_TYPE.put("rpm", "audio/x-pn-realaudio-plugin");
        FILE_CONTENT_TYPE.put("wav", "audio/x-wav");
        FILE_CONTENT_TYPE.put("bmp", "image/bmp");
        FILE_CONTENT_TYPE.put("gif", "image/gif");
        FILE_CONTENT_TYPE.put("jpeg", "image/jpeg");
        FILE_CONTENT_TYPE.put("jpg", "image/jpeg");
        FILE_CONTENT_TYPE.put("png", "image/png");
        FILE_CONTENT_TYPE.put("css", "text/css");
        FILE_CONTENT_TYPE.put("html", "text/html");
        FILE_CONTENT_TYPE.put("htm", "text/html");
        FILE_CONTENT_TYPE.put("txt", "text/plain");
        FILE_CONTENT_TYPE.put("xsl", "text/xml");
        FILE_CONTENT_TYPE.put("xml", "text/xml");
        FILE_CONTENT_TYPE.put("mpeg", "video/mpeg");
        FILE_CONTENT_TYPE.put("mpg", "video/mpeg");
        FILE_CONTENT_TYPE.put("avi", "video/x-msvideo");
        FILE_CONTENT_TYPE.put("movie", "video/x-sgi-movie");
    };
}
